import request from "@/axios";
import store from "@/store";

export class bigDataApi {
    // ---------------------------------SEO数据
    // 权重变化
    static weightChange = (params) => request.get("/adminapi/seo/weight/change", params);
    // 榜单详情
    static synthesizeList = (params) => request.get("/adminapi/ranking/synthesize/url", params);
    // 榜单详情导出
    static synthesizeExport = () => {
      const token = store.getters.user.token;
      window.open(`/adminapi/ranking/synthesize/urlexport?token=${token}`);
    };
    // ---------------------------------站长数据
    // 网站排名
    static rankingUrl = (params) => request.get("/adminapi/ranking/url", params);
    // 飞机排名
    static rankingAircraft = (params) => request.get("/adminapi/ranking/aircraft", params);
    // 邮箱排名
    static rankingEmail = (params) => request.get("/adminapi/ranking/email", params);
    // 标题排名
    static rankingTitle = (params) => request.get("/adminapi/ranking/title", params);
    // 权重排名
    static rankingWeight = (params) => request.get("/adminapi/ranking/weight", params);
    // 预估流量排名
    static rankingEstimate = (params) => request.get("/adminapi/ranking/estimate", params);
    // 搜索站长次数
    static search = (params) => request.get("/adminapi/ranking/search", params);
    // ---------------------------------资产更新
    // 最新消息
    static messagesList = (params) => request.get("/adminapi/assetrenewal/messages", params);
    // 有效域名
    static effectiveUrlList = (params) => request.get("/adminapi/assetrenewal/effectiveUrl", params);
    // 友情链接
    static friendshipList = (params) => request.get("/adminapi/assetrenewal/friendship", params);
    // 统计
    static statistics = (params) => request.get("/adminapi/url/statistics", params);
    // ---------------------------------词库统计
    // 词
    static keyword = (params) => request.get("/adminapi/keywords/keyword", params);
    // 详
    static detail = (params) => request.get("/adminapi/keywords/detail", params);
  }